Back to Home Techmaghi Learning Hub

Class: Day 8 - 27 June 2025

HTML & CSS Clone Project

This is a responsive clone of the Nike homepage using only HTML and CSS.

View Nike Clone →

JavaScript Topics

Function Parameters

Defined in the function declaration.

function greet(name) {
  console.log("Hi " + name);
}
      

Function Arguments

Actual values passed to the function call.

greet("Rahul"); // "Rahul" is the argument
      

Types of Scopes

Closure Function

Inner function accessing outer function’s variables after outer function is done.

function outer() {
  let count = 0;
  return function inner() {
    count++;
    console.log(count);
  }
}
const inc = outer();
inc(); // 1
inc(); // 2